import {UpdateDependenceParam} from "../model/Dependence";
import {post, postForm} from "../util/http";

export default {
    updateDependence(data: UpdateDependenceParam): Promise<string> {
        return post<string>("/dependence/updateDependence", data);
    },
    queryParentIdList(childScheduleId: bigint): Promise<Array<bigint>> {
        return postForm<Array<bigint>>("/dependence/queryParentIdList", {childScheduleId});
    }
}